package com.galaxy.order.domain.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.galaxy.common.translation.annotation.Translation;
import com.galaxy.common.translation.constant.TransConstant;
import com.galaxy.order.domain.OrderCoupon;
import com.galaxy.order.domain.OrderReview;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AutoMapper(target = OrderReview.class)
public class OrderReviewVo {
    private Long id;
    private Long orderId;
    private String orderNo;
    private Long userId;
    private Integer rating;
    private String content;
    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "images")
    private String images;
    private Integer status;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<OrderDetailVo> orderDetail;
}
